// rdtsc_Example.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <STDLIB.H>
int main(int argc, char* argv[])
{
	printf("Hello World!\n");
	long timespin = 0;
	__asm
	{
		rdtsc
		mov ecx, eax
		nop
		rdtsc
		sub eax, ecx
		mov timespin, eax
	}
	if (timespin > 0xff)
	{
		printf("in vm\n");
	}
	else
	{
		printf("in native os\n");
	}
	system("pause");
	return 0;
}

